package com.smbms.service.realm;

import org.apache.shiro.crypto.hash.Md5Hash;
import org.springframework.stereotype.Service;

@Service
public class PasswordCrypt {

	/**
	 * 密码加密
	 * @param password
	 * @return
	 */
	public String cryptedPwd(String password){
		return new Md5Hash(password).toString();
	}
}
